<?php

class Test Extends MY_Controller
{


	public function index()
	{
		print_r($this->_accronymizer());
	
	}
	
	private function _accronymizer($string = FALSE)
	{
		if($string !== FALSE)
		{
			$clean_string = htmlspecialchars(strip_tags($string));
			$number_of_words = str_word_count($clean_string,1);
			function accronym($x)
			{
				if(strlen($x) > 1)
				{
					return $x[0];
				}
			}
			$accronym = array_map("accronym",$number_of_words);
			return strtoupper(implode('',$accronym));
		}else{
			return NULL;
		}
	}






}